package io.github.lamtong.osgi.server;

import io.github.lamtong.osgi.api.HelloService;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 * 自定义服务接口实现类.
 *
 * @author Lam Tong
 */
public class HelloServiceImpl implements HelloService {

    private static final Logger logger = Logger.getLogger(HelloServiceImpl.class.getName());

    @Override
    public String hello(String name) {
        logger.log(Level.INFO, "HelloServiceImpl -> hello, name = " + name);
        return "Hello, " + name;
    }

}
